<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">app课程-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="courseSystemId" class="col-sm-2 control-label no-padding-right">课程id</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="32" name="courseSystemId" alt="课程id" id="courseSystemId" placeholder="课程id" type="text" title="课程id" class="form-control"  value="${editEntity.courseSystemId}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="trialAge" class="col-sm-2 control-label no-padding-right">适用年龄</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="trialAge" alt="适用年龄" id="trialAge" placeholder="适用年龄" type="text" title="适用年龄" class="form-control"  value="${editEntity.trialAge}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="publicityImage" class="col-sm-2 control-label no-padding-right">活动宣传图</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="715827882" name="publicityImage" alt="活动宣传图" id="publicityImage" placeholder="活动宣传图" type="text" title="活动宣传图" class="form-control"  value="${editEntity.publicityImage}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressProvince" class="col-sm-2 control-label no-padding-right">活动所属省</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressProvince" alt="活动所属省" id="addressProvince" placeholder="活动所属省" type="text" title="活动所属省" class="form-control"  value="${editEntity.addressProvince}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressCity" class="col-sm-2 control-label no-padding-right">活动所属城市</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressCity" alt="活动所属城市" id="addressCity" placeholder="活动所属城市" type="text" title="活动所属城市" class="form-control"  value="${editEntity.addressCity}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressRegion" class="col-sm-2 control-label no-padding-right">活动所属城区</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressRegion" alt="活动所属城区" id="addressRegion" placeholder="活动所属城区" type="text" title="活动所属城区" class="form-control"  value="${editEntity.addressRegion}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="address" class="col-sm-2 control-label no-padding-right">活动详细地址</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="100" name="address" alt="活动详细地址" id="address" placeholder="活动详细地址" type="text" title="活动详细地址" class="form-control"  value="${editEntity.address}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="form-group">
								<label for="container" class="col-sm-2 control-label">课程详情：</label>
								<div class="col-sm-8">
									<script id="container" name="content" type="text/plain"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.config.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/editor_api.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.all.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/third-party/zeroclipboard/ZeroClipboard.js"></script>
									<script type="text/javascript" charset="utf-8" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
									<script type="text/javascript">
										var ue = UE.getEditor('container');
										var lang = ue.getOpt('lang'); //默认返回：zh-cn
									</script>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" />
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>